<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>控制面板</title>
  <#include "/include/head.html">
  <style>

  </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">系统管理</div>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">系统</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" code="/boss/linux/infos">系统信息</a></dd>
            <dd><a href="javascript:;" code="/boss/linux/monitor">监控</a></dd>
            <dd><a href="javascript:;" code="/boss/linux/infos">系统日志</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">软件设置</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" code="https://www.baidu.com">nginx配置</a></dd>
            <dd><a href="javascript:;">Java虚拟机配置</a></dd>
            <dd><a href="javascript:;">MySQL配置</a></dd>
          </dl>
        </li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <iframe id='content' width="100%" height="100%" frameborder='0' scrolling="auto" src="javascript:void(0)"></iframe>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © Power by system-lang
  </div>
</div>
<#include "/include/end.html">

<script>
layui.use('element', function(){
  var element = layui.element,
  $ = layui.$;
  
  /* displayHeight();
  function displayHeight(height){
	  var winHeight = 0;
	  if(height == undefined || height == null || height == ""){
		  winHeight = $(window).height() - 0;
	  } else {
		  winHeight = height - 0;
	  }
	  $('#content').attr('height',winHeight);
  }
  $(window).resize(function() {
	  displayHeight();
  }); */
  
  $('a').click(function(){
	  var code = $(this).attr('code');
	  if(code != undefined){
		  $('#content').attr('src',code);
	  }
	  element.render('content');
  });
});
</script>
</body>
</html>